package com.limeng.catalina.mapper;

import com.limeng.server.Servlet;

public class MappedWrapper extends MapperElement {

    public MappedWrapper(String name, Servlet servlet) {
        super(name, null);
        this.name = name;
        this.servlet = servlet;
    }

    @Override
    public String toString() {
        return "MappedWrapper{" +
                "name='" + name + '\'' +
                ", servlet=" + servlet +
                '}';
    }

    private String name;

    private Servlet servlet;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Servlet getServlet() {
        return servlet;
    }

    public void setServlet(Servlet servlet) {
        this.servlet = servlet;
    }
}
